﻿using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.Regions;

namespace YunBox2.Client.Infrastructure
{
    /// <summary>
    /// LoginMenu.xaml 的交互逻辑
    /// </summary>
    [Export("LogonMenu")]
    public partial class LogonMenu
    {
        public LogonMenu()
        {
            InitializeComponent();
        }

		[ImportingConstructor]
		public LogonMenu(IRegionManager regionManager):this()
		{
			
		}

	    [Import]
	    ViewModels.LogonMenuViewModel ViewModel
	    {
			get
			{
				return DataContext as ViewModels.LogonMenuViewModel;
			}
			set
			{
				DataContext = value;
			}
	    }

        #region 帮助菜单
        private void AboutMenuItem_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            AboutDialog about=new AboutDialog();
            about.ShowDialog();
        }
        #endregion
    }
}